import request from '@/utils/request'
import qs from 'qs'

export function getQuestionsApi(params) {
    return request({
        url: 'http://localhost:3000/msbd/getQuestions',
        method: 'get',
        params
    })
}

export function postQuestionsApi(data) {
  return request({
      url: 'http://localhost:3000/msbd/questionsInsert',
      method: 'post',
      data:qs.stringify(data)
  })
}

export function updateQuestionsApi(data) {
  return request({
      url: 'http://localhost:3000/msbd/questionsUpdate',
      method: 'post',
      data:qs.stringify(data)
  })
}

export function delQuestionsApi(params) {
  return request({
      url: 'http://localhost:3000/msbd/questionsDel',
      method: 'get',
      params
  })
}